Index Parent

TextEditor class


TextEditor class is used to create fully fectured text editor objects.

TextEditor class is a subclass of TextEditor.mcc, so you must have TextEditor.mcc in MUI:Libs/MUI to use it. TextEditor.mcc is copyright of Allan Odgaard.

 

ATTRIBUTES
Name Type Class Note
AreaMarked B GN  
AutoClip B ISGN  
Columns N ISG  
Contents S ISG This is the content of the object. Note that when you get it, you always get a <65536 chars string, despite the real size of the content.
CursorX N ISGN  
CursorY N ISGN  
Error N GN  
Export S IS One of:
  • Plain
  • EMail
ExportWrap N ISGN  
FixedFont B IGN  
Flow M SGN A number or one of:
  • Left
  • Right
  • Center
  • Justified (not implemented yet)
HasChanged B ISGN  
Import S IS One of:
  • Plain
  • EMail
  • Mime
  • MimeQuoted
ImportWrap N ISGN  
InsertMode B ISGN  
InVirtualGroup B I Set it your object is in a Virtgroup.
Pen N SGN  
Quiet B ISGN  
ReadOnly B ISGN  
RedoAvaible B GN  
Rows N I  
Separator S SG  
Slider S I The name of a slider, prop, Scrollbar object to be linked to the TextEditor. Example:
mgroup.0="teg"
 teg.class="group"
 teg.horiz=1
 teg.spacing=0
  teg.0="te"
   te.class="texteditor"
   te.slider="tescr"
    tescr.class="Scrollbar"
  teg.1="tescr"
StyleBold B SGN  
StyleItalic B SGN  
StyleUnderline B SGN  
TypeAndSpell N SGN  
UndoAvaible B GN  
WrapBorder N ISGN  

 

METHODS
Name Parameters Note
Open <file>  
Save <file>  
InsertFile <file>  
Clear -  
Insert <file>,[where] where is one of:
  • Cursor (default)
  • Top
  • Bottom
Search <string>,[flags] flags is one or more of:
  • Top
  • Case
Replace <string>  
FreeResources - If you get the contents of the object, a large amount of mem (depending of its size) may be allocated (an freed only at object disposing). To free this mem, you may use this method.